package top.yocloud.service.impl;

import top.yocloud.service.HelloService;

/**
 * todo say something here...
 * <br/>
 * created by 谭亚军 at 2023/5/25 14:42
 */
public class HelloServiceImpl implements HelloService {
    @Override
    public String sayHello(String name) {
        if (name==null || name.isEmpty()){
            return "Guest, Hello World!";
        }
        return String.format("Dear %s: Hello World!", name);
    }

    @Override
    public String sayGoodBye(String name) {
        if (name==null || name.isEmpty()){
            return "Guest, Good bye! say you tomorrow!";
        }
        return String.format("Dear %s: Good bye! say you tomorrow!", name);
    }
}
